import React from 'react';
import PropTypes from 'prop-types';
import CustomEmptyType from '@/platform/types/custom-empty-type';
import classes from './CustomEmpty.module.less';

const CustomEmpty:React.FC<CustomEmptyType> = (props) => (
    <div className={classes["app-custom-empty"]}>
        <div className={classes["app-custom-empty-image"]} style={props.imgStyle}> </div>
        <p className={classes["app-custom-empty-description"]}>
            <span>{ props.description }</span>
        </p>
    </div>
);

CustomEmpty.defaultProps = {
    imgStyle: {},
    description: '暂无数据！'
}

CustomEmpty.propTypes = {
    imgStyle: PropTypes.object,
    description: PropTypes.string
}
export default CustomEmpty;
